home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / slhea201.zip / REPM.BAT < prev   
DOS Batch File  |  1991-06-09  |  913b  |  31 lines

  1. @echo off
  2. if not "%CMDLINE%"=="" GOTO OK
  3. ECHO Sorry, you need 4DOS !
  4. goto end
  5. :OK
  6. TEXT
  7. ┌─────────────────────────────────┐
  8. │                                 │
  9. │        Reply to a message       │
  10. │          (Mega Mail)            │
  11. │                                 │
  12. └─────────────────────────────────┘
  13. ENDTEXT
  14. if not exist refer.txt goto noref
  15. rem replace d:\temp\mail\header by your favorite header file...
  16. rem replace "edit" by your favorite text editor
  17. makehead <refer.txt >MESSAGE.txt d:\temp\mail\header
  18. edit message.txt  refer.txt
  19. quit
  20. :noref
  21. rem : We can have :
  22. rem 1° new message : add the footer
  23. rem    but Megamail create a Message.Txt with only Ctrl-Z in it
  24. rem 2° re-edit a message : don't touch it !
  25. rem : we have to test size of message.txt. So we need 4DOS...
  26. iff filesize message.txt LE 1 then
  27.  makehead >message.txt d:\temp\mail\header
  28. endiff
  29. edit message.txt
  30. :end
  31.